import request from '@/api/socialized-servce/index.js'
const api = request
//送货单
export default {
    /**
     * @description: 添加 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    add(params) {
        const url = "finance/reportDeliver/add"
        return api.request(url, 'post', { ...params })
    },

    /**
     * @description: 修改 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    edit(params) {
        const url = "finance/reportDeliver/edit"
        return api.request(url, 'post', { ...params })
    },

    /**
     * @description: 编号删除 *代表必填
     * @param {String/Number} staffId *
     * @return {Object}
     */
    delById(id) {
        const url = `finance/reportDeliver/delById?id=${id}`
        return api.request(url, 'get')
    },
    /**
       * @description: 条件查询 *代表必填
       * @param {String/Number} staffId *
       * @return {Object}
       */
    queryById(id) {
        const url = `finance/reportDeliver/queryById?id=${id}`
        return api.request(url, 'get')
    },
    /**
     * @description: 条件查询 *代表必填
     * @param {String/Number} staffId *
     * @return {Object}
     */
    queryByCondition(params) {
        const url = "finance/reportDeliver/queryByCondition"
        return api.request(url, 'post', { ...params })
    },

    /**
     * @description: 分页查询 *代表必填
     * @param {Object} params *
     * @param {String/Number} page *
     * @param {String/Number} size *
     * @return {Object}
     */
    queryPageByCondition(params) {
        const url = "finance/reportDeliver/queryPageByCondition"
        return api.request(url, 'post', { ...params })
    },
}
